const http = uni.$u.http
export default {
  /**
   * 政策配置
   */
    getPolicyList: (data) => http.get('/policy/list', data),
    getPolicyDetail: (id) => http.get('/policy/' + id),
    /**
     * 登录
     */
    wxLogin: (data) => http.post('/parent/wx-login', data),
    getParentInfo: (id) => http.get('/parent/' + id),
    updateParentInfo: (data) => http.put('/parent/' + data.id, data),

    /**
     * 业务接口
     */
    getWxNewsList: (data) => http.get('/wxNews/list', data),
    getWxBannerList: (data) => http.get('/wxBanner/list', data),
    getCoursePage: (data) => http.get('/course', data),
    // 写字楼详情
    getCourseDetail: (id) => http.get('/course/' + id),
    // 获取我的学生
    getChildrenList: (data) => http.get('/parent/children',data),
    createCourseRecord: (data) => http.post('/courseRecord', data),
    getClassList: (data) => http.get('/getClassList', data),
    bindStudentParent: (data) => http.post('/bindStudentParent', data),
    unbindStudentParent: (data) => http.post('/unbindStudentParent', data),
    getCourseRecordList: (data) => http.get('/courseRecord/list', data),
    cancelCourseRecord: (id) => http.post('/courseRecord/cancel/' + id),
}
